<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<div class="layui-tab layui-tab-brief" th:fragment="tab">
    <ul class="layui-tab-title">
        <li th:if="${#authPermit.checkPermit('/channel/addEditView.action')}" th:class="${flag == 1 ? 'layui-this' : ''}"><a th:href="|/channel/detail.action?channelId=${obj.channelId == null ? 0 : obj.channelId}&addFlag=${addFlag}|" lay-text="渠道信息">渠道信息</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/orderConfig/addEditView.action') && obj.channelId > 0}" th:class="${flag == 2 ? 'layui-this' : ''}"><a th:href="|/channel/orderConfig.action?channelId=${obj.channelId}&addFlag=${addFlag}|" lay-text="订单配置">订单配置</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/workorder/picture/list.action') && obj.channelId > 0}" th:class="${flag == 13 ? 'layui-this' : ''}"><a th:href="|/channel/workorder/picture/list.action?channelId=${obj.channelId}&addFlag=${addFlag}|" lay-text="工单照片">工单照片</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/workorder/video/list.action') && obj.channelId > 0}" th:class="${flag == 17 ? 'layui-this' : ''}"><a th:href="|/channel/workorder/video/list.action?channelId=${obj.channelId}|" lay-text="工单视频">工单视频</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/serviceCategory/addEditView.action') && obj.channelId > 0}" th:class="${flag == 3 ? 'layui-this' : ''}"><a th:href="|/channel/serviceCategory.action?channelId=${obj.channelId}&showType=2&addFlag=${addFlag}|" lay-text="开通分类">开通分类</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/servProductList.action') && obj.channelId > 0}" th:class="${flag == 10 ? 'layui-this' : ''}"><a th:href="|/channel/servProductList.action?channelId=${obj.channelId}&showType=1&addFlag=${addFlag}|" lay-text="开通产品">开通产品</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/serviceArea/addEditView.action') && obj.channelId > 0}" th:class="${flag == 4 ? 'layui-this' : ''}"><a th:href="|/channel/service/area/list.action?channelId=${obj.channelId}&addFlag=${addFlag}|" lay-text="开通区域">开通区域</a></li>

        <li th:if="${#authPermit.checkPermit('/channel/config/list.action') && obj.channelId > 0}" th:class="${flag == 12 ? 'layui-this' : ''}"><a th:href="|/channel/config/list.action?channelId=${obj.channelId}&addFlag=${addFlag}|" lay-text="订单库存">订单库存</a></li>

        <li th:if="${#authPermit.checkPermit('/channel/servicemaster/list.action') && obj.channelId > 0}" th:class="${flag == 9 ? 'layui-this' : ''}"><a th:href="|/channel/servicemaster/list.action?channelId=${obj.channelId}&addFlag=${addFlag}|" lay-text="服务工程师">服务工程师</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/sp/list.action') && obj.channelId > 0}" th:class="${flag == 16 ? 'layui-this' : ''}"><a th:href="|/channel/sp/list.action?channelId=${obj.channelId}&addFlag=${addFlag}|" lay-text="服务商">服务商</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/outPriceList.action') && obj.channelId > 0}" th:class="${flag == 5 && bizType == 1 ? 'layui-this' : ''}"><a th:href="|/channel/priceList.action?channelId=${obj.channelId}&addFlag=${addFlag}&bizType=1|" lay-text="C类价格配置">C类价格设置</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/inPriceList.action') && obj.channelId > 0}" th:class="${flag == 5 && bizType == 2 ? 'layui-this' : ''}"><a th:href="|/channel/priceList.action?channelId=${obj.channelId}&addFlag=${addFlag}&bizType=2|" lay-text="F类价格配置">F类价格设置</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/projectPriceList.action') && obj.channelId > 0}" th:class="${flag == 5 && bizType == 3 ? 'layui-this' : ''}"><a th:href="|/channel/priceList.action?channelId=${obj.channelId}&addFlag=${addFlag}&bizType=3|" lay-text="B价格配置">B类价格设置</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/commission/addEditView.action') && obj.channelId > 0 && obj.rank == 2}" th:class="${flag == 6 ? 'layui-this' : ''}"><a th:href="|/channel/commission.action?channelId=${obj.channelId}&addFlag=${addFlag}|" lay-text="佣金设置">佣金设置</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/settle/addEditView.action') && obj.channelId > 0}" th:class="${flag == 7 ? 'layui-this' : ''}"><a th:href="|/channel/settle.action?channelId=${obj.channelId}&addFlag=${addFlag}|" lay-text="结算信息">结算信息</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/deposit/addEditView.action') && obj.channelId > 0}" th:class="${flag == 8 ? 'layui-this' : ''}"><a th:href="|/channel/deposit.action?channelId=${obj.channelId}&addFlag=${addFlag}|" lay-text="押金管理">押金管理</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/bail/list.action') && obj.channelId > 0}" th:class="${flag == 18 ? 'layui-this' : ''}"><a th:href="|/channel/bail/list.action?channelId=${obj.channelId}&addFlag=${addFlag}|" lay-text="保证金管理">保证金管理</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/promoCode.action') && obj.channelId > 0 && obj.rank == 2}" th:class="${flag == 11? 'layui-this' : ''}"><a th:href="|/channel/promoCode.action?channelId=${obj.channelId}" lay-text="推广码">推广码</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/promotion/list.action') && obj.channelId > 0 && obj.promotionType == 2}" th:class="${flag == 14? 'layui-this' : ''}"><a th:href="|/channel/promotion/list.action?channelId=${obj.channelId}" lay-text="今日头条推广">今日头条推广</a></li>
        <li th:if="${#authPermit.checkPermit('/channel/mergeSettle/list.action') && obj.channelId > 0 && obj.mergeSettle == 2}" th:class="${flag == 15? 'layui-this' : ''}"><a th:href="|/channel/mergeSettle/list.action?channelId=${obj.channelId}" lay-text="合并结算渠道明细">合并结算渠道明细</a></li>

    </ul>
</div>

</html>